import java.util.*;
public class StudentTest {
    public  static void main(String[] args) {
        List<Student> list = new LinkedList<>();
        list.add(new Student(5317,"钟睿文",98,95,86));
        list.add(new Student(5315,"陈煜扬",86,78,94));
        list.add(new Student(5316,"盛茂淞",95,84,76));
        list.add(new Student(5318,"李浩然",74,96,90));
        list.add(new Student(5319,"江野",84,86,98));
        sortTotalScore a = new sortTotalScore();
        Collections.sort(list,a);

        sortID b = new sortID();
        Collections.sort(list,b);
        System.out.println("学号排序：");
        for (Student student : list) {
            System.out.println(student);
        }


        Collections.sort(list, a);
        System.out.println("成绩排序：");
        for (Student student : list) {
            System.out.println(student);
        }
    }
}

